<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <form th:id="form-data" th:action="@{/activitySchedule/add}" th:object="${ActivitySchedule}" method="post">
                <div class="panel-body">
                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">活动名称</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="text" class="form-control" th:field="*{activityName}"  readonly="readonly"/>
                        </div>
                    </div>
                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">日程</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="text" class="form-control" th:field="*{scheduleName}" maxlength="128" onfocus="clearErrorMsg()" placeholder="请输入日程名称" />
                        </div>
                    </div>
                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">是否置顶</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="checkbox" th:field="*{isTop}" placeholder="" />
                        </div>
                        <label class="col-sm-1 control-label search-label">是否展示</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="checkbox" th:field="*{status}" placeholder="" />
                        </div>
                    </div>
                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">开始时间</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="date" th:field="*{beginTime}" placeholder=""/>

                        </div>
                    </div>
                    <div class="form-group clear">
                        <label class="col-sm-1 control-label search-label">比赛地址</label>
                        <div class="col-sm-4 col-sm-inp">
                            <input type="text" class="form-control" th:field="*{address}" maxlength="128" onfocus="clearErrorMsg()" placeholder="请输入比赛地址" />
                        </div>
                    </div>
                        <input th:type="hidden" th:field="*{activityId}" placeholder=""/>

                    <input th:type="hidden" id="editType" name="editType" th:value="ADD" placeholder="">

                    <div class="clear errorMsg" id="errorMsg"></div>

                    <div class="panel-heading">
                        <div>
                            <button type="button" class="btn btn-sm btn-warning"
                                    th:onclick="'javascript:loadListData(\'' + @{/activity/list} + '\')'">返回</button>&emsp;
                            <button type="button" class="btn btn-sm btn-success" onclick="checkParams()">确定</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script th:src="@{/manager/js/activitySchedule.js}"></script>
</html>
